<?xml version="1.0" encoding="UTF-8" ?>
<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@ page import="java.util.*"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="offer_board.db.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<%
//System.out.println(request.getAttribute("listcount")+" "+request.getAttribute("page")+" "+request.getAttribute("maxpage")+" " +request.getAttribute("startpage")+" "+request.getAttribute("endpage"));

	List boardListCasual=null;
	int listcount=1;
	int nowpage=1;
	int maxpage=1;
	int startpage=1;
	int endpage=1;
	
	if(request.getAttribute("listcount")==null)
	{
		response.sendRedirect("./BoardListCasual.of");
	}
	else
	{
		System.out.println("list_casual.jsp 에 23라인 탄다");
		boardListCasual=(List)request.getAttribute("boardlistcasual");
		listcount=((Integer)request.getAttribute("listcount")).intValue();
		nowpage=((Integer)request.getAttribute("page")).intValue();
		maxpage=((Integer)request.getAttribute("maxpage")).intValue();
		startpage=((Integer)request.getAttribute("startpage")).intValue();
		endpage=((Integer)request.getAttribute("endpage")).intValue();
%>

<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>shopping your dream</title>
<meta name="keywords" content="" />
<meta name="description" content="" />
<link href="../../../css/default.css" rel="stylesheet" type="text/css" />
  

<script type="text/javascript">
<!--예제
	tabOver = function() {
		var submenu = document.getElementById('tabSubmenu').document
				.getElementsByTagName('li');
		for ( var i = 0; i < submenu.length; i++) {
			submenu[i].onmouseover = function() {
				this.className += ' over';
			}
			submenu[i].onmouseout = function() {
				this.className = this.className.replace(new RegExp(' over\\b'),
						'');
			}
		}
	}

	if (window.attachEvent)
		window.attachEvent('onload', tabOver);
	//스크립트 끝-->
</script>
<script language="javascript">
	function id(){
		loginform.shop_id.focus();
	}
	function check(form){
		var id=loginform.shop_id.value;
		var pswd=loginform.shop_pswd.value;
		if(id==""){
			alert("아이디입력");
			loginform.shop_id.focus();
			return false;
		if(pswd==""){
				alert("비밀번호입력");
				loginform.shop_pswd.focus();
				return false;
			}
		}
	}

	function join(){
		location.href="join.jsp";
	}
</script>
<script language="javascript">
	function addboard(){
		boardform.submit();
	}
	</script>
</head>

<body>
<div id="logo-wrap">
<div id="logo">
<h1><a href="../../../harvest/index.jsp">Shop </a></h1>
<h2>Design your dream</h2>
</div>
</div>

<!-- start header -->
<div id="header">
<div id="menu">
  <ul id="tabSubmenu">
	<li><a href="">SHOP</a>
	<ul>
		<li><a href="BoardList.sh">top</a></li>
        <li><a href="BoardListPants.sh">pants</a></li>
        <li><a href="BoardListOnepice.sh">onepice</a></li>
		<li><a href="#">skirt</a></li>
		<li><a href="#">dress</a></li>
		<li><a href="#">bag</a></li>
		<li><a href="#">etc</a></li>
	</ul>
	</li>
	<li><a href="#">TO OFFER</a>
	<ul>
		<li><a href="../../../web/admin/shop_offer/list.jsp">trend</a></li>
		<li><a href="#">style</a></li>
	</ul>
	</li>
	<!-- 
	<li><a href="#">COMMUNITY</a>
	<ul>
		<li><a href="../board/qna_board_list.jsp">패션제안</a></li>
		<li><a href="../board/hot_girl_list.jsp">Hot girl</a></li>
	</ul>
	</li>
	 -->
</ul>
<ul>
	<li><a href="../../../qna/indexMain.jsp">Q & A</a></li>
	<li><a href="#">MYPAGE</a></li>
	<li><a href="#">CART</a></li>
	<li class="current_page_item"><a href="../../../login.jsp">LOG IN</a></li>
	<li class="last"><a href="../../../join.jsp">JOIN US</a></li>
	<li class="last"><a href="../../../manager/manager_my.jsp">관리자홈</a></li>
</ul>
</div>
</div>
<!-- end header -->
<!-- start page -->
<div id="wrapper">
<div id="wrapper-btm">
<div id="page"><!-- start content -->
<div id="content">

<div class="post">
<h1 class="title" align="center">shop offer > casual </h1>

</div>
<div class="post">
<div class="entry">
<!-- 게시판 리스트 -->
<table width=50% border="0" cellpadding="0" cellspacing="0"
	align="center">
	<tr align="center" valign="middle">

		<td align=right><font size=2>글 개수 : ${listcount }</font></td>
	</tr>

	<tr align="center" valign="middle" bordercolor="#333333">
		<td style="font-family: Tahoma; font-size: 8pt;" width="8%"
			height="26">
		<div align="center">글번호</div>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;" width="50%">
		<div align="center">상품</div>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;" width="11%">
		<div align="center">제품번호</div>
		</td>
		<td style="font-family: Tahoma; font-size: 8pt;" width="10%">
		<div align="center">삭제</div>
		</td>
		<!-- 
		<td style="font-family:Tahoma;font-size:8pt;" width="14%">
			<div align="center">코디01</div>
		</td>
		<td style="font-family:Tahoma;font-size:8pt;" width="17%">
			<div align="center">태그</div>
		</td>
		-->
		

	</tr>

	<%
		for(int i=0;i<boardListCasual.size();i++){
			BoardBean bl=(BoardBean)boardListCasual.get(i);
	%>
	<tr align="center" valign="middle" bordercolor="#333333"
		onmouseover="this.style.backgroundColor='F8F8F8'"
		onmouseout="this.style.backgroundColor=''">
		<td height="23" style="font-family: Tahoma; font-size: 10pt;"><%=bl.getNum()%>
		</td>

		<td style="font-family: Tahoma; font-size: 10pt;">
		<div align="left"><a
			href="./BoardDetailAction.of?product_num=<%=bl.getProduct_num()%>">
		<img
			src="C:\shopdesign\.metadata\.plugins\org.eclipse.wst.server.core\tmp0\wtpwebapps\shopping mall8_5\boardupload\<%=bl.getBoard_file()%>"
			width="100" hight="200" border="0" /> </a></div>
		</td>
		<td style="font-family: Tahoma; font-size: 10pt;">
		<div align="center"><%=bl.getProduct_num() %></div>
		</td>
		<td>
		<div align="center"><a
			href="./BoardDelete.of?product_num=<%=bl.getProduct_num()%>">
		[삭제] </div>
		</td>
		<!-- 
		<td style="font-family:Tahoma;font-size:10pt;">
			<div align="center"><%=bl.getCody01() %></div>
		</td>
		<td style="font-family:Tahoma;font-size:10pt;">
			<div align="center"><%=bl.getTags() %></div>
		</td>
		-->
		

	</tr>
	<%} %>
	<tr align=center height=20>
		<td colspan=7 style="font-family: Tahoma; font-size: 10pt;">
		<%if(nowpage<=1){ %> [이전]&nbsp; <%}else{ %> <a
			href="./BoardList.of?page=<%=nowpage-1 %>">[이전]</a>&nbsp; <%} %> <%for(int a=startpage;a<=endpage;a++){
				if(a==nowpage){%> [<%=a %>] <%}else{ %> <a
			href="./BoardList.of?page=<%=a %>">[<%=a %>]</a>&nbsp; <%} %> <%} %> <%if(nowpage>=maxpage){ %>
		[다음] <%}else{ %> <a href="./BoardList.of?page=<%=nowpage+1 %>">[다음]</a>
		<%} %>
		</td>
	</tr>

</table>
<%} %>
</div>
</div>
</div>
<!-- end page --></div>
</div>
<!-- start footer -->
<div id="footer">
<div id="footer-wrap">
<p id="legal">(c) 2007 YourSite. Design by <a
	href="http://www.freecsstemplates.org/">Free CSS Templates</a>.</p>
</div>
</div>
<!-- end footer -->
</div>
</body>
</html>